<form method="POST">
    <h1>Novo Usu&aacute;rio</h1>
    <?php if (form_error('email') != '' 
            || form_error('senha') != ''
            || form_error('nome') != '') {?>
    <p class="error">Campos com * s&atilde;o obrigat&oacute;rios!</p>
    <?php }?>
    <div class="dados-holder">
        <div class="right">
            <div>
                <input type="text" name="email" id="email" value="<?=set_value('email');?>" />*
            </div>
            <div>
                <input type="password" name="senha" id="senha" value="<?=set_value('senha');?>" />*
            </div>
            <div>
                <input type="text" name="nome" id="nome" value="<?=set_value('nome');?>" />*
            </div>
            <div>
                <input type="text" name="telefone" id="telefone" value="<?=set_value('telefone');?>" />
            </div>
            <div>
                <input type="text" name="cpf" id="cpf" value="<?=set_value('cpf');?>" />
            </div>
            <div>
                <select name="nivel" id="nivel">
                    <option value="0" <?=set_select('nivel', 0);?> >0 - Usu&aacute;rio comum</option>
                    <option value="1" <?=set_select('nivel', 1);?> >1 - N&iacute;vel 1</option>
                    <option value="2" <?=set_select('nivel', 2);?> >2 - N&iacute;vel 2</option>
                    <?php if ($user->getNivel() > 2){ ?>
                    <option value="3" <?=set_select('nivel', 3);?> >3 - Administrador</option>
                    <?php } ?>
                </select>
            </div>
        </div>
        <div class="left">
            <div><label for="email">Email</label></div>
            <div><label for="senha">Senha</label></div>
            <div><label for="nome">Nome</label></div>
            <div><label for="telefone">Telefone</label></div>
            <div><label for="cpf">CPF</label></div>
            <div><label for="nivel">N&iacute;vel</label></div>
        </div>
    </div>
    <div>
        <input type="submit" value="Salvar" />
    </div>
</form>
